<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PasswordChange
 *
 * @author ghazy
 */
class Application_Form_PasswordChange extends Zend_Form {

    public function  init() {

        $this->setMethod('post');

        $password = new Zend_Form_Element_Password('newpassword');
        $password->setLabel('new password')
             ->setRequired(true)
             ->addFilter(new Zend_Filter_HtmlEntities())
             //->addValidator('Alpha',false,array('allowWhiteSpace' => false))
             ->addValidator('NotEmpty',true);


        $verify_pass = new Zend_Form_Element_Password('verify');
        $verify_pass->setLabel('re-type new password')
             ->setRequired(true)
             ->addFilter(new Zend_Filter_HtmlEntities())
             //->addValidator('Alpha',false,array('allowWhiteSpace' => false))
             ->addValidator('NotEmpty',true);


        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('change password');


        $reset = new Zend_Form_Element_Reset('reset');
        $reset->setLabel('Reset');


        $this->addElement($password)
             ->addElement($verify_pass)
             ->addElement($reset)
             ->addElement($submit);

    }
}
?>